package com.cn.wanxi.dao.impl;

import com.cn.wanxi.dao.IUserTypeDao;
import com.cn.wanxi.model.UserTypeModel;
import com.cn.wanxi.util.GetSqlSession;
import com.cn.wanxi.util.JDBCUtils;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

public class UserTypeDaoImpl implements IUserTypeDao {
    @Override
    public List<UserTypeModel> getUserTypeList() {
        return GetSqlSession.getSqlSession().selectList("com.cn.wanxi.dao.IUserTypeDao.getUserTypeList");
    }

    @Override
    public UserTypeModel getUserType(int id) {
        return GetSqlSession.getSqlSession().selectOne("com.cn.wanxi.dao.IUserTypeDao.getUserType",id);
    }
}
